package com.example.study.model;

import com.example.study.model.group.Insert;
import com.example.study.model.group.Update;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@EqualsAndHashCode()
@ToString
public class CourseVO implements Serializable {
    @NotNull(groups = {Update.class}, message = "课程ID不能为空")
    @ApiModelProperty(value = "课程ID")
    private Long id;
    @NotBlank(groups = {Insert.class}, message = "课程名称不能为空")
    @ApiModelProperty(value = "课程名称")
    private String courseName;
}
